// import service from "@/utils/request";
// import xjaxiosOnline from "@/api/axios";
import zhreq from "@/api/axios";
export default {
  /**
   * @description: 用户登录
   * @param {String} account
   * @param {String} password
   * @return {Object}
   */
  /**
   * @description: 获取单位列表 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {componyId: 1} *
   * @param {String} order 排序方式 ASC DESC 默认ASC
   * @param {String} sort 自定义排序方式 'createTime'
   * @return {Array}
   */
  getList(params) {
    return zhreq.post("/template/breedType/queryPageList", {
      page: params.page,
      size: params.size,
      sort: "timestamp",
      auditFlag: 1,
      // auditFlag: 1
      entity: params.entity
    });
  },
  queryByCondition(params) {
    return zhreq.post("/template/breedType/queryByCondition", params);
  },
  addList(params) {
    return zhreq.post("/template/breedType/add", params);
  },
  editList(params) {
    return zhreq.post("/template/breedType/edit", params);
  },
  delList(params) {
    return zhreq.get(`/template/breedType/delByNo?no=${params}`);
  }
};
